/**
 * Chrowety
 * utils.rgx.js
 */

// optimized

utils = window.utils || {};

utils.rgx = {
	mention: (/@(\w{1,20})/ig),
	user_list: (/@(\w{1,20})\/(\w{1,79})/ig),
	hashtag: (/((?:^|\s)#[^\s!,.?&#*"'@\[\]{}-]+)/ig),
	http: (/https?:\/\//ig),
	link: (/((?:(?:https?|ftp):\/\/(?:www\.)?|www\.)(?:[a-zA-Z0-9_-]+)(?:\.\w+)+(?:(?:(?:\/[a-zA-Z0-9:-@_,+-=%&]+)+)?(?:\.\w+|\/)?(?:\?[a-zA-Z0-9:-@_,+-=&()!'#%]+)?)?(?:#!?[a-zA-Z0-9:-@_,+-=&()!'#%]+)?)/gi),
	rel_tag: (/rel\=\"\w+\"/ig),
	href_tag: (/href\=\"(.+)\"/ig)
};
